#pragma once
#include "singleton.h"
enum E_WHERE
{
    E_CITY=__LINE__,
    E_BATTLE,
    E_FB_IN,
    E_FB_OUT,
    E_FB_OUT_CITY,
    E_FB_OUT_STONE,
};

class CGameAnalyze:public Singleton<CGameAnalyze>
{
    typedef std::vector<sPos> VecPos;
    E_WHERE m_eWhere;
public:
    DWORD m_dwLastNPCtime;
public:
    enum E_LOOT_TYPE
    {
        E_NULL=__LINE__,
        E_TARGET,
        E_BOX,
        E_HERB,
        E_MINE,
        E_SKIN,
        E_HERB_ROCK,
        E_MINE_ROCK
    };
    CGameAnalyze()
    {
    }
public:
    bool Init();

    void SetWhere(E_WHERE eWhere) { m_eWhere = eWhere;};
    void CalcWhere();
    E_WHERE GetWhere(){ return m_eWhere;}

private:
    void Warning();
};

#define ANALYZE() CGameAnalyze::getSingleton()